//
//  ZYOldNetWork.h
//  DesignMode
//
//  Created by wangzhipan on 2024/10/31.
//

#import <Foundation/Foundation.h>
/*
 基于目前这种枚举判断的写法，当我们新增Network_Wait，必须要修改operation里面的代码
 
 这些对象的状态经常发生变化，如何对状态进行管理，并且保持高层的稳定性
 */
typedef NS_ENUM(NSInteger, NetworkState) {
    Network_Open,
    Network_Close,
    Network_Connect,
};

@interface ZYOldNetWork : NSObject

@property (nonatomic, assign, readonly) NetworkState state;

- (instancetype)initWithState:(NetworkState)state;

- (void)operation1;
- (void)operation2;
- (void)operation3;
@end

